.class public Lcom/brixd/android/swipeback/lib/activity/SwipeBackActivity;
.super Landroid/support/v4/app/FragmentActivity;
.source "SwipeBackActivity.java"

# interfaces
.implements Lcom/brixd/android/swipeback/lib/activity/SwipeBackActivityBase;


# instance fields
.field private mHelper:Lcom/brixd/android/swipeback/lib/activity/SwipeBackActivityHelper;


# direct methods
.method public constructor <init>()V
    .registers 1

    .prologue
    .line 11
    invoke-direct {p0}, Landroid/support/v4/app/FragmentActivity;-><init>()V

    return-void
.end method


# virtual methods
.method public findViewById(I)Landroid/view/View;
    .registers 4
    .param p1, "id"    # I

    .prologue
    .line 30
    invoke-super {p0, p1}, Landroid/support/v4/app/FragmentActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    .line 31
    .local v0, "v":Landroid/view/View;
    if-nez v0, :cond_10

    iget-object v1, p0, Lcom/brixd/android/swipeback/lib/activity/SwipeBackActivity;->mHelper:Lcom/brixd/android/swipeback/lib/activity/SwipeBackActivityHelper;

    if-eqz v1, :cond_10

    .line 32
    iget-object v1, p0, Lcom/brixd/android/swipeback/lib/activity/SwipeBackActivity;->mHelper:Lcom/brixd/android/swipeback/lib/activity/SwipeBackActivityHelper;

    invoke-virtual {v1, p1}, Lcom/brixd/android/swipeback/lib/activity/SwipeBackActivityHelper;->findViewById(I)Landroid/view/View;

    move-result-object v0

    .line 33
    .end local v0    # "v":Landroid/view/View;
    :cond_10
    return-object v0
.end method

.method public getSwipeBackLayout()Lcom/brixd/android/swipeback/lib/SwipeBackLayout;
    .registers 2

    .prologue
    .line 38
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/activity/SwipeBackActivity;->mHelper:Lcom/brixd/android/swipeback/lib/activity/SwipeBackActivityHelper;

    invoke-virtual {v0}, Lcom/brixd/android/swipeback/lib/activity/SwipeBackActivityHelper;->getSwipeBackLayout()Lcom/brixd/android/swipeback/lib/SwipeBackLayout;

    move-result-object v0

    return-object v0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .registers 3
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 16
    invoke-super {p0, p1}, Landroid/support/v4/app/FragmentActivity;->onCreate(Landroid/os/Bundle;)V

    .line 18
    new-instance v0, Lcom/brixd/android/swipeback/lib/activity/SwipeBackActivityHelper;

    invoke-direct {v0, p0}, Lcom/brixd/android/swipeback/lib/activity/SwipeBackActivityHelper;-><init>(Landroid/app/Activity;)V

    iput-object v0, p0, Lcom/brixd/android/swipeback/lib/activity/SwipeBackActivity;->mHelper:Lcom/brixd/android/swipeback/lib/activity/SwipeBackActivityHelper;

    .line 19
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/activity/SwipeBackActivity;->mHelper:Lcom/brixd/android/swipeback/lib/activity/SwipeBackActivityHelper;

    invoke-virtual {v0}, Lcom/brixd/android/swipeback/lib/activity/SwipeBackActivityHelper;->onActivityCreate()V

    .line 20
    return-void
.end method

.method protected onPostCreate(Landroid/os/Bundle;)V
    .registers 3
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 24
    invoke-super {p0, p1}, Landroid/support/v4/app/FragmentActivity;->onPostCreate(Landroid/os/Bundle;)V

    .line 25
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/activity/SwipeBackActivity;->mHelper:Lcom/brixd/android/swipeback/lib/activity/SwipeBackActivityHelper;

    invoke-virtual {v0}, Lcom/brixd/android/swipeback/lib/activity/SwipeBackActivityHelper;->onPostCreate()V

    .line 26
    return-void
.end method

.method public scrollToFinishActivity()V
    .registers 2

    .prologue
    .line 48
    invoke-virtual {p0}, Lcom/brixd/android/swipeback/lib/activity/SwipeBackActivity;->getSwipeBackLayout()Lcom/brixd/android/swipeback/lib/SwipeBackLayout;

    move-result-object v0

    invoke-virtual {v0}, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->scrollToFinishActivity()V

    .line 49
    return-void
.end method

.method public setSwipeBackEnable(Z)V
    .registers 3
    .param p1, "enable"    # Z

    .prologue
    .line 43
    invoke-virtual {p0}, Lcom/brixd/android/swipeback/lib/activity/SwipeBackActivity;->getSwipeBackLayout()Lcom/brixd/android/swipeback/lib/SwipeBackLayout;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->setEnableGesture(Z)V

    .line 44
    return-void
.end method
